<style lang='scss' type='stylesheet/scss' scoped>
.as-input {
  margin-bottom: 10px;
}
</style>
<template>
  <as-card :text="text"
           title="通过绑定 v-model 输入字符，支持原生 placeholder / maxlength / minlength / disabled 等属性。">
    <as-input v-model="name" placeholder="请输入姓名"></as-input>
  </as-card>
</template>

<script type="text/ecmascript-6">
import { mapGetters } from "vuex";
export default {
  name: "",
  computed: {
    ...mapGetters(["isMobile"])
  },
  data() {
    return {
      name: "",
      text: `<template>
   <as-input v-model="name"  placeholder="请输入姓名"></as-input>
 </template>
 <script>  
   export default {
     data() {
       return {
         name: ""
       }
     }
   }
 <\/script>`
    };
  }
};
</script>
